package nl.cmkprojects.sage.slimplayer;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;

@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class ArtistCoverart {
  public enum Type {
    replace, add, fallback
  };

  @XmlValue
  @XmlList
  private List<String> urls = new ArrayList<String>();
  @XmlAttribute(name = "merge-type", required = true)
  private Type type = Type.add;

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public List<String> getUrls() {
    return urls;
  }
}
